package com.five.wisdomClass.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.five.wisdomClass.entity.*;

import java.util.List;

public interface IAdminService {

    // 发布公告
    boolean postAnnounce(Announce announce);

    // 查看公告
    List<Announce> getAnnounces();

    // 获取最新时间的一条公告
    Announce getLatestAnnounce();

    // 查看请假申请列表
    IPage<Leave> getLeaveInfo(Integer currentPage, Integer size);

    // 通过学生的请假申请
    boolean passStudentLeave(Leave leave);

    // 驳回学生的请假申请
    boolean refuseStudentLeave(Leave leave);

    // 获取课程调整申请
    IPage<Course>  getInsertCourse(Integer currentPage,Integer size);

    // 审核教师添加的课程
    boolean checkInsertCourse(Integer id,Integer state,String courseNumber);

}
